#ifndef __PROJECTILE_H
#define __PROJECTILE_H

#include "Weapon.h"

class Projectile : public Weapon
{
protected:
	double theta;
	double angle;
	
public:
	static const double INITIAL_STRENGTH = 10.0; 
	Projectile (Player *p, const double strength = INITIAL_STRENGTH);
	
	void renderOn (AbstractRenderer *renderer);
		
	Weapon *generate (Player *p);
	void onCollision (WObject *from);
	void step (double tau);
	double getAngle () const { return angle; }
};

#endif